﻿using System;
using System.Linq;
using System.Text;

namespace TaskFramework
{
    public interface ITaskDispatcher
    {
        void AddTaskFactory(ITaskFactory task);
        void AddTaskFactory<T>() where T : ITaskFactory, new();
        void RouteRequest(object requestData);
        event TaskEventHandler TaskEvent;
        bool WriteDebugInfo { get; set; }
        BatchScope CreateBatchScope(BatchEventHandler callback);
    }
}
